﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<UFPC.Models.Product>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Delete
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Delete</h2>

    <h3>Are you sure you want to delete this?</h3>
    <fieldset>
        <legend>Fields</legend>

        <table>
            <tr>
                <td>Name</td>
                <td><%= Html.Encode(Model.Name) %></td>
            </tr>
            <tr>
                <td>Packing Size</td>
                <td><%= Html.Encode(Model.PackingSize) %></td>
            </tr>
            <tr>
                <td>Quantity Per Unit</td>
                <td><%= Html.Encode(Model.QuantityPerUnit) %></td>
            </tr>
            <tr>
                <td>Unit</td>
                <td><%= Html.Encode(Model.Unit) %></td>
            </tr>
            <tr>
                <td>Type</td>
                <td><%= Html.Encode(Model.Type) %></td>
            </tr>
        </table>
        
    </fieldset>
    <% using (Html.BeginForm()) { %>
        <p>
		    <input type="submit" value="Delete" /> |
		    <%= Html.ActionLink("Back to List", "Index") %>
        </p>
    <% } %>

</asp:Content>

